# for i in range(1, 9 + 1):
#     for j in range(1, i + 1):
#         print("%i * %i = %i" % (j, i, j * i), end="\t")
#     print()

# for num in range(0, 100):
#     if num > 1:
#         state = True
#         for i in range(2, int(num ** 0.5) + 1):
#             if num % i == 0:
#                state = False
#                break
#         if state:
#            print(num, end="\t")

# for i in range(1,100+1):
#     sum=0
#     for j in range(1,i):
#         if i%j==0:
#             sum=sum+j
#     if i==sum:
#         print(i)

for i in range(1,11,2):
    print(("*"*i).center(11))
for i in range(9,0,-2):
    print(("*"*i).center(11))